$(document).ready(function(){
	$('img').parents('a').css('border','none');
	$('a[href*=#]').click(function() {
    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
        && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 1000);
                return false;
            }
        }
    });	
	
	$('#nav_button').mouseover(function(){
		$("#nav").slideDown("normal");
		$("#nav_button").slideUp("normal");
	});
	$('#np_closd').click(function(){
		$("#nav").slideUp("normal");
		$("#nav_button").slideDown("normal");
	});
	$("a.zoom").imgbox({
        'zoomOpacity'        : true,
        'alignment'        : 'center'
	});
}); 